package com.example.admin.feign;

import com.usian.model.media.pojos.WmNews;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(value = "leadnews-wemedia")
public interface WemediaFeign {
    
    /**
     * 得到wm新闻通过id
     *
     * @param id id
     * @return {@code WmNews}
     */
    @GetMapping("/wemedia/news/v1/get_wm_news_by_id")
    WmNews getWmNewsById(Integer id);
    
    @PostMapping("/wemedia/news/v1/update_wm_news_by_id")
    Integer updateWmNewsById(@RequestBody WmNews wmNews);
}
